﻿@using VocaDb.Model.Domain
@using VocaDb.Model.Domain.Songs
@using VocaDb.Web.Helpers
@using VocaDb.Web.Models.Shared
@inherits VocaDb.Web.Code.VocaDbPage<VocaDb.Model.DataContracts.Songs.SongListWithArchivedVersionsContract>

@{
	PageProperties.Title = ViewRes.EntryDetailsStrings.Revisions + " - " + Model.Name;
	ViewBag.Parents = new[] {
		Html.ActionLink(Model.Name, "Details", new { id = Model.Id })
	};
}

@ArchivedEntryHelpers.CurrentVersionMessage(Model.Version, EntryStatus.Finished)

@ArchivedEntryHelpers.ArchivedObjectVersions(Model.ArchivedVersions.Select(
	a => new ArchivedObjectVersion(a, Translate.SongListEditableFieldNames.GetAllNameNames(a.ChangedFields, SongListEditableFields.Nothing))))